package com.xkdx.caipiao.wiget;

import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;

public class YScrolllDectort extends SimpleOnGestureListener {  
	  
    @Override  
    public boolean onScroll(MotionEvent e1, MotionEvent e2,  
            float distanceX, float distanceY) {  
        /** 
         * 如果我们滚动更接近水平方向,返回false,让子视图来处理它 
         */  
        return (Math.abs(distanceY) > Math.abs(distanceX));  
    }  
}  
